﻿using Rhino;
using Rhino.Commands;
using YangTools.Realization;

namespace YangTools
{
    /// <summary>
    /// SUCopy 命令：像SU的复制一样进行阵列
    /// </summary>
    public class SUCopyCommand : Command
    {
        /// <summary>
        /// SUCopy构造方法
        /// </summary>
        public SUCopyCommand()
        {
            Instance = this;
        }

        /// <summary>
        /// 该命令的实例
        /// </summary>
        public static SUCopyCommand Instance { get; private set; }

        /// <summary>
        /// 设置指令的英文名称
        /// </summary>
        public override string EnglishName { get { return "SUCopy"; } }

        /// <summary>
        /// 指令调用的主方法
        /// </summary>
        /// <param name="doc">当前的犀牛文档</param>
        /// <param name="mode"></param>
        /// <returns></returns>
        protected override Result RunCommand(RhinoDoc doc, RunMode mode)
        {
            SUCopy copy = new SUCopy();
            copy.Copy();
            return Result.Success;
        }
    }


}
